﻿using System.Configuration;

namespace WCF.Common.DAL
{
    public class BaseDAL
    {
        public string strConn = string.Empty;

        /// <summary>
        /// 数据库连接串赋值
        /// </summary>
        public BaseDAL()
        {
            //if (ConfigurationManager.ConnectionStrings["ORACLE_ConnectionString"].ConnectionString != null)
            //{
            //    strConn = ConfigurationManager.ConnectionStrings["ORACLE_ConnectionString"].ConnectionString;
            //}
           
        }

        #region ===数据操作对像初始化===
        public QuickDeveloperDBDataContext dataContext;
        public QuickDeveloperDBDataContext GetDataContext()
        {
            if (dataContext == null)
            {
                dataContext = new QuickDeveloperDBDataContext();
            }
            return dataContext;
        }
        #endregion
    }
}